package avicit.bdp.dds.server.worker.task.sparkflow.utils;

import java.io.Serializable;

public class ThirdFlowInfoStopVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String name;
    private String state;
    private String startTime;
    private String endTime;
    private String flowId;

    public boolean isFinished() {
        boolean flag = false;
        if (state.equals(StopState.COMPLETED.getText()) || state.equals(StopState.FAILED.getText()) || state.equals(StopState.KILLED.getText())) {
            flag = true;
        }
        return flag;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getFlowId() {
        return flowId;
    }

    public void setFlowId(String flowId) {
        this.flowId = flowId;
    }


}
